import Vue from 'vue'
import Router from 'vue-router'
import First from "../components/First";
import Home from "../components/Home";
import User from "../components/User";
import UserDetail from "../components/UserDetail";


Vue.use(Router)

export default new Router({
  routes: [
    {path: '/', redirect: "/home",},
    {path: '/first', name: 'First', component: First,},
    {path: '/home', name: 'Home', component: Home,},
    {path: '/user', name: 'User', component: User,},
    {path: '/userdetail/:id/:bir/:content/:username', name: 'UserDetail', component: UserDetail,},
    {path: '/*', redirect: "/home",},
  ]
})
